<?php

namespace Dao\Cache;

class Redis extends \Base\Dao\Cache{

    public function getValue($key) {
        $redis = new \S\Db\Redis();
        $ret = $redis->get($key);
        return $ret ? $ret : false;
    }

    public function setValue($key, $value, $expire = 3600) {
        $redis = new \S\Db\Redis();
        $ret = $redis->set($key, $value);
        $redis->expire($key, $expire);
        return true;
    }
}
